package com.shadt.core.model;

import java.io.Serializable;

/**
 * 
 * JSON模型
 * 
 * 用户后台向前台返回的JSON对象
 * 
 * @author SongR
 * 
 */
@SuppressWarnings("serial")
public class Json implements Serializable {
	private boolean success = false;//是否成功
	private String msg;//返回信息
	private Object obj;//返回数据
	private Integer count=0; 

	public Json(boolean success, String msg, Object obj,Integer count) {
		super();
		this.success = success;
		this.msg = msg;
		this.obj = obj;
		this.count=count;
	}
	public Json(boolean success, String msg, Object obj) {
		super();
		this.success = success;
		this.msg = msg;
		this.obj = obj;
	}
	public Json(boolean success, String msg) {
		super();
		this.success = success;
		this.msg = msg;
	}

	public Json(String msg, Object obj) {
		super();
		this.msg = msg;
		this.obj = obj;
	}

	public Json(String msg) {
		super();
		this.msg = msg;
	}
	
	public Json() {
		super();
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}

}
